<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        div {
            width: 200px;
            height: 100px;
            line-height: 100px;
            text-align: center;
            background-color: pink;
        }

        span {
            width: 20px;
            height: 20px;
            background-color: purple;
        }
    </style>
</head>

<body>
    <div>
        <span>110</span>
    </div>
    <script>
        var div = document.querySelector('div');
        var sp = document.querySelector('span');
        /* div.addEventListener('click', function () {
            alert('div');
        }, true);
        sp.addEventListener('click',function() {
            alert('span')
        },true); */
        div.addEventListener('click', function () {
            alert('div');
        }, false);
        sp.addEventListener('click', function () {
            alert('span');
        }, false);
        document.addEventListener('click', function () {
            alert('document');
        })
    </script>
</body>

</html>